/*
   文件说明：
      该文件封装了axios，可以更方便地为请求添加token
*/
import axios from 'axios'
let token = 'eyJhbGciOiJSUzI1325iJ9.eyJzdWIiInVzZXJJZCI6IjEiLCHdhHdjoiTXIuQUciLCJleHAiOjE1Nzc5NzU1MTl9.g5rXRfairB0kbOOsK8E26upPklagalh6otYqeHCPRElxfrG-NHSZI5kXJxNBOR1RA4fj5tI6MLwT09oH_ZmfRZbNBxKj_syEuE7YK32KwAymuRYL2jXG8gLMqHr8tMcuZN4TuFzO1-JF2su96s0fXOcKxvx5_Rg7tgGlbEVzdRI'
export default function (data){
   return axios({
      ...data,
      headers: { 'x-token': token }
      // 模拟为每一个请求添加token
   })
}